import {legacy_createStore as createStore} from 'redux'
import counterReducer from './reducers/counterReducer'
/* 
   1、createStore参数就是reudcer函数
   2、将store对象默认导出
*/
const store=createStore(counterReducer)
export default store